package com.zpark.servlet_listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * @PackageName: com.zpark.servlet_listener
 * @ClassName: RequestInitDestroy
 * @Description:
 * @author: RZS
 * @date: 2023/3/13  16:06
 */
@WebListener
public class RequestInitDestroy implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("request对象销毁");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("request对象创建");
    }
}
